{assign var='header' value='header2'}
{include file="top.html"}
<link rel="stylesheet" href="/style/mobile/css/member.css">
<div id="content" class="container main">
    <div class="nav-m ui-clr">
        <ul>
            {if $site_config.apply_jufu!=1}
            <li><a href="{'/member/recchage'}">充值</a></li>
            {/if}
            {if $site_config.withdraw_status eq 1}
            <li class="on"><a href="{'/member/withdraw'}">提现</a></li>
            {/if}
            {if $site_config.apply_jufu!=1}
            <li><a href="{'/member/accountlog'}">充值/提现记录</a></li>
            {/if}
            <li><a href="{'/member/accountdetail'}">帐户明细</a></li>
        </ul>
    </div>

    <div class="title-m2">
        <b>可提现余额：<span class="color01">{$member.user_money|price_format}</span></b>
    </div>

    <div class="form-m" style="background: #fff;border-top:1px solid #e6e6e6;">
        <form action="" method="post" target="iframeNews">
            <div class="item ui-clr">
                <dl>
                    <dt class="color03"><span class="color01">*</span> 提现金额：</dt>
                    <dd>
                        <input name="amount" type="text" class="input-m" />
                    </dd>
                </dl>
            </div>
            {if $feelist}
            <div class="item ui-clr">
                <dl>
                    <dt class="color03">到帐时间：</dt>
                    <dd>
                        <select name="gotime" id="gotime">
                            {foreach from=$feelist item=m key=key}
                            <option value="{$key}">{$key}</option>
                            {/foreach}
                        </select>
                        <span class="color01 fee">提现将收取
                        {foreach from=$feelist item=m name=fee key=key}
                            <b class="fee{$key}" {if $smarty.foreach.fee.index neq 0}style="display:none;"{/if}>{$m}</b>
                        {/foreach}
                        手续费
                    </span>
                    </dd>
                </dl>
            </div>
            <script type="text/javascript">
                $('#gotime').bind('change',function(){
                    var v=$(this).val();
                    $('.fee b').hide();
                    $('.fee b.fee'+v).css('display','');
                })
            </script>
            {/if}
            <div class="list01 list-address">
                {foreach from=$list item=m}
                <dl class="ui-clr">
                    <dt><label><input name="id" type="radio" value="{$m.id}" {if $m.is_default eq 1}checked{/if} /> <b>{$m.bankname}</b> <span>（{$m.bankcard}）</span></label></dt>
                    <dd>
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <span class="color03">姓名：</span>{$m.name}&nbsp;&nbsp;
                                    <span class="color03">开户行地址：</span>{$m.bankaddress}
                                </td>
                            </tr>
                        </table>
                    </dd>
                </dl>
                {/foreach}
            </div>
            <div class="item ui-clr" style="font-size: 1.4rem;color: #000;padding-left:5px;padding-top:15px;">
                您当前的可用保证金为：<span class="color01">{$member.user_money|price_format}</span>
                冻结保证金：<span class="color02">{$member.frozen_money|price_format}</span>
            </div>
            <input name="Submit" type="submit" value="提交申请" class="btn" />
        </form>
    </div>
</div>
{include file="footer.html"}